<div class="breadcrum">
    <p>
        <a href="{$config->site_url('master/overview')}">Master</a>
        <span></span><a href="{$config->site_url('master/barang')}">Barang</a>
        <span></span><small>Hapus Data</small>
    </p>
    <div class="clear"></div>
</div>  
<div class="sub-content">  
    <div class="navigation">  
        <div class="navigation-button">
            <ul>
                <li><a href="{$config->site_url('master/barang/add')}"><img alt="" src="{$BASEURL}/resource/doc/images/icon/add-icon.png">Tambah Data</a></li>
                <li><a href="{$config->site_url('master/barang')}"><img alt="" src="{$BASEURL}/resource/doc/images/icon/icon.notes.blue.png">Daftar Data</a></li> 
            </ul>
            <div class="clear"></div>
        </div>
    </div> 
    <!-- notification template -->
    {include file="base/templates/notification.html"}
    <!-- end of notification template--> 
    <form action="{$config->site_url('master/barang/delete_process')}" method="post">
        <input type="hidden" name="barang_id" value="{$result.barang_id|default:''}">
        <table width="100%" class="table-input">
            <tbody>
                <tr class="headrow">
                    <th colspan="4">Hapus Barang</th>
                </tr>
                <tr>
                    <td width="20%">No Inventaris</td>
                    <td width="30%">{$result.barang_noinventaris|default:''}
                    </td> 
                    <td width="20%">Vendor</td>                   
                    <td width="30%">{$data_v = $vendor->get_vendor_by_cd($result.vendor_cd|default:'')}
                      {$data_v.vendor_name|default:''}  
                    </td>
                </tr>
                <tr>
                    <td>Nama</td>
                    <td>{$result.barang_nama|default:''}</td>
                    <td>Ruang</td>
                    <td>{$data_r = $ruang->get_ruang_by_id($result.ruang_cd)}
                            {$data_r.ruang_name|default:''}
                    </td> 
                </tr> 
                <tr>
                    <td>Harga</td>
                    <td>{$result.barang_harga_beli|number_format:0:',':'.'|default:''}</td> 
                    <td>Group Barang</td>
                    <td>{$data_g = $gpbarang->get_group_barang_by_id($result.gpbarang_cd)}
                            {$data_g.gpbarang_name|default:''}
                    </td> 
                </tr> 
                <tr>
                    <td>Nilai Buku</td>
                    <td>{$result.barang_nilai_buku|number_format:0:',':'.'|default:''}</td>
                    <td>Lokasi</td>
                    <td>{$data_l = $lokasi->get_lokasi_by_id($result.lokasi_cd)}
                        {$data_l.lokasi_name|default:''}
                    </td>
                </tr> 
                <tr>
                    <td>Umur Ekonomis</td>
                    <td>{$result.barang_umurekonomis|default:'0'} Tahun</td>
                    <td>Kategori Barang</td>
                    <td>{$data_k = $kategoribarang->get_kategoribarang_by_id($result.kategoribarang_cd)}
                        {$data_k.kategoribarang_name|default:''}
                    </td>
                </tr> 
                <tr>
                    <td>Kondisi</td>
                    <td>{$result.barang_kondisi|capitalize|default:''}</td> 
                    <td>Jenis Barang</td>
                    <td>{$data_j = $jenisbarang->get_jenisbarang_by_id($result.jenisbarang_cd)}
                        {$data_j.jenisbarang_name|default:''}
                    </td>             
                </tr>
                <tr>
                    <td width="20%">Penyusutan</td>
                    <td width="30%">{if {$result.barang_susut|default:''} eq '1'}Ya{else}Tidak{/if} </td> 
                    <td width="20%">Merk Barang</td>
                    <td width="30%">{$data_m = $merk->get_merk_by_id($result.merk_cd)}
                        {$data_m.merk_name|default:''}
                    </td>
                </tr>
                <tr>                
                    <td width="20%">Tanggal Beli</td>
                    <td width="30%">{$dtm->get_full_date($result.barang_tglbeli)|default:''}</td>
                    <td width="20%">Status</td>
                    <td width="30%">{$result.barang_status|capitalize|default:''}</td>
                </tr>
                <tr>                
                    <td width="20%">Keterangan</td>                   
                    <td width="30%">{$result.barang_keterangan|default:''}</td>
                    <td width="20%">Garansi</td>
                    <td width="30%">{if {$result.barang_garansi|default:''} eq '1'}Ya,{else}Tidak{/if} {$dtm->get_full_date($result.barang_tgl_garansi)|default:''}</td>
                </tr>
                <tr class="submit-box">
                    <td colspan="4">
                        <input type="submit" class="edit-button" value="Hapus" name="save[insert]"> 
                    </td>
                </tr>
            </tbody>
        </table>
    </form> 
</div>